package org.csu.mypetstore.api.vo;

import lombok.Data;

import java.util.Date;

//封装了一条消息
@Data
public class MessageVO {
    private String id;
    private String status;
    private String type;
    private Date sendTime;
    private Object content;             //信息内容
    private String toContactId;         //
    private ChatUserVO fromUser;

    public MessageVO(){}

    public MessageVO(String id,String status,String type,Date sendTime,Object content,String toContactId,ChatUserVO fromUser){
        this.setId(id);
        this.setStatus(status);
        this.setType(type);
        this.setSendTime(sendTime);
        this.setContent(content);
        this.setToContactId(toContactId);
        this.setFromUser(fromUser);

    }
}
